home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / dev / ds5000.md / devConfig.c < prev    next >
C/C++ Source or Header  |  1991-05-08  |  2KB  |  72 lines

  1. /* 
  2.  * devConfig.c --
  3.  *
  4.  *    Configuration table for the devices in the system.  There is
  5.  *    a table for the possible controllers in the system, and
  6.  *    then a table for devices.  Devices are implicitly associated
  7.  *    with a controller.  This file should be automatically generated
  8.  *    by a config program, but it isn't.
  9.  *
  10.  *    Copyright (C) 1989 Digital Equipment Corporation.
  11.  *    Permission to use, copy, modify, and distribute this software and
  12.  *    its documentation for any purpose and without fee is hereby granted,
  13.  *    provided that the above copyright notice appears in all copies.  
  14.  *    Digital Equipment Corporation makes no representations about the
  15.  *    suitability of this software for any purpose.  It is provided "as is"
  16.  *    without express or implied warranty.
  17.  */
  18.  
  19. #ifndef lint
  20. static char rcsid[] = "$Header: /sprite/src/kernel/dev/ds5000.md/RCS/devConfig.c,v 1.4 91/05/08 16:29:40 jhh Exp $ SPRITE (Berkeley)";
  21. #endif not lint
  22.  
  23. #include "sprite.h"
  24. #include "devInt.h"
  25. #include "scsiHBA.h"
  26. #include "fs.h"
  27. #include "devTypes.h"
  28.  
  29. /*
  30.  * Per device include files.
  31.  */
  32. #include "scsiC90.h"
  33.  
  34. /*
  35.  * The controller configuration table.
  36.  */
  37. DevConfigController devCntrlr[] = {
  38.    /* Name    Slot    ID    InitProc. */
  39.     {"SCSI#0",   5, 0, DevSCSIC90Init},
  40.     {"SCSI#1", 0, 1, DevSCSIC90Init},
  41.     {"SCSI#2", 1, 2, DevSCSIC90Init},
  42.     {"SCSI#3", 2, 3, DevSCSIC90Init},
  43. };
  44. int devNumConfigCntrlrs = sizeof(devCntrlr) / sizeof(DevConfigController);
  45.  
  46. /*
  47.  * Table of SCSI HBA types attached to this system.
  48.  */
  49.  
  50. ScsiDevice *((*devScsiAttachProcs[]) ()) = {
  51.     DevSCSIC90AttachDevice,        /* SCSI Controller type 0. */
  52. };
  53. int devScsiNumHBATypes = sizeof(devScsiAttachProcs) / 
  54.              sizeof(devScsiAttachProcs[0]);
  55.  
  56. /*
  57.  * A list of disk devices that is used when probing for a root partition.
  58.  * SCSI Disk target ID 0 LUN 0 partition 0 on SCSIC90 HBA 0. 
  59.  */
  60. #if 0
  61. Fs_Device devFsDefaultDiskPartitions[] = {
  62.     { -1, SCSI_MAKE_DEVICE_TYPE(DEV_SCSI_DISK, DEV_SCSIC90_HBA, 0, 0, 0, 2),
  63.           SCSI_MAKE_DEVICE_UNIT(DEV_SCSI_DISK, DEV_SCSIC90_HBA, 0, 0, 0, 2),
  64.     (ClientData) NIL },
  65.   };
  66. int devNumDefaultDiskPartitions = sizeof(devFsDefaultDiskPartitions) / 
  67.               sizeof(Fs_Device);
  68. #endif
  69. Fs_Device devFsDefaultDiskPartitions[1];
  70. int devNumDefaultDiskPartitions = 0;
  71.  
  72.